const _import = require('./view-import/' + process.env.NODE_ENV)
export default {
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/',
      component: _import('index'),
      children: [
        {
          path: '/home',
          component: _import('home'),
          name: '侦查概况'
        },
        {
          path: '/detective-group',
          component: _import('detective-group'),
          name: '侦查组织',
          meta: {
            tab: true,
            menu: true
          }
        },
        {
          path: '/detective-task',
          component: _import('detective-task/layout'),
          name: '侦查任务',
          children: [
            {
              path: '/detective-task/',
              name: '任务列表',
              component: _import('detective-task/index'),
              meta: { tab: true }
            }, 
            {
              path: '/detective-task/edit',
              component: _import('detective-task/edit')
            } 
          ],
          meta: {
            // tab: true,
            menu: true
          }
        },
        {
          path: '/clue-collection',
          component: _import('clue-collection'),
          name: '线索收集',
          meta: {
            tab: true,
            menu: true
          }
        },
        {
          path: '/detective-log',
          component: _import('detective-log'),
          name: '工作纪要',
          meta: {
            tab: true,
            menu: true
          }
        }
      ]
    },
    {
      path: '/vistual-detective',
      component: _import('vistual-detective')
    }
  ]
}
